package com.goldsign.pay.feign.api.userbase.facade;

import com.goldsign.pay.provider.userbase.to.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by xiaojingjing on 2018/5/11.
 */
@FeignClient("pay-userbase")
public interface FeignUserBaseApi {
    @RequestMapping(method = RequestMethod.POST, value = "/getUserInfoByMobNo")
    public GetUserInfoRespDTO getUserInfoByMobNo(@RequestBody GetUserInfoReqDTO req);

    @RequestMapping(method = RequestMethod.POST, value = "/createUser")
    public CreateUserRespDTO createUser(@RequestBody CreateUserReqDTO req);

    @RequestMapping(method = RequestMethod.POST, value = "/checkUserLoginPasswd")
    public CheckUserLoginPasswdRespDTO checkUserLoginPasswd(@RequestBody CheckUserLoginPasswdReqDTO req);
}
